package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName code_history
 */
@TableName(value ="code_history")
public class CodeHistory implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String codeinfo;

    /**
     * 
     */
    private Object rulesid;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private Object ruletype;

    /**
     * 
     */
    private Object productinfoid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getCodeinfo() {
        return codeinfo;
    }

    /**
     * 
     */
    public void setCodeinfo(String codeinfo) {
        this.codeinfo = codeinfo;
    }

    /**
     * 
     */
    public Object getRulesid() {
        return rulesid;
    }

    /**
     * 
     */
    public void setRulesid(Object rulesid) {
        this.rulesid = rulesid;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 
     */
    public Object getRuletype() {
        return ruletype;
    }

    /**
     * 
     */
    public void setRuletype(Object ruletype) {
        this.ruletype = ruletype;
    }

    /**
     * 
     */
    public Object getProductinfoid() {
        return productinfoid;
    }

    /**
     * 
     */
    public void setProductinfoid(Object productinfoid) {
        this.productinfoid = productinfoid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CodeHistory other = (CodeHistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCodeinfo() == null ? other.getCodeinfo() == null : this.getCodeinfo().equals(other.getCodeinfo()))
            && (this.getRulesid() == null ? other.getRulesid() == null : this.getRulesid().equals(other.getRulesid()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getRuletype() == null ? other.getRuletype() == null : this.getRuletype().equals(other.getRuletype()))
            && (this.getProductinfoid() == null ? other.getProductinfoid() == null : this.getProductinfoid().equals(other.getProductinfoid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCodeinfo() == null) ? 0 : getCodeinfo().hashCode());
        result = prime * result + ((getRulesid() == null) ? 0 : getRulesid().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getRuletype() == null) ? 0 : getRuletype().hashCode());
        result = prime * result + ((getProductinfoid() == null) ? 0 : getProductinfoid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", codeinfo=").append(codeinfo);
        sb.append(", rulesid=").append(rulesid);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", userid=").append(userid);
        sb.append(", appid=").append(appid);
        sb.append(", ruletype=").append(ruletype);
        sb.append(", productinfoid=").append(productinfoid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}